class GasolinCar(object):
    def run_with_gasoline(self):
        print('i can run with eletric')
class EletricCar(object):
    def run_with_eletric(self):
        print('i can run with eletrCar')

class HybridCar(GasolinCar,EletricCar):
    pass

tesla=HybridCar()
tesla.run_with_eletric()
tesla.run_with_gasoline()
